package org.gd.hellojaxb.privat24.regular;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "answer")
@XmlAccessorType(XmlAccessType.FIELD)
public class EditRegularPayResponse {

    @XmlRootElement(name = "id")
    @XmlAccessorType(XmlAccessType.FIELD)
    @SuppressWarnings("unused")
    public static final class Response {
        @XmlAttribute(name = "PrState")
        private String state;
        @XmlAttribute(name = "PrCode")
        private String code;
        @XmlAttribute(name = "PrMess")
        private String message;

        public Response() {
        }

        public String getState() {
            return state;
        }

        public Response setState(String state) {
            this.state = state;
            return this;
        }

        public String getCode() {
            return code;
        }

        public Response setCode(String code) {
            this.code = code;
            return this;
        }

        public String getMessage() {
            return message;
        }

        public Response setMessage(String message) {
            this.message = message;
            return this;
        }
    }

    @XmlElement(name = "id")
    private Response answer;

    public EditRegularPayResponse() {
        answer = new Response();
    }

    public Response getAnswer() {
        return answer;
    }
}
